import request from '@/utils/request'

// 查询出库单管理列表
export function listOutWarehouse(query) {
  return request({
    url: '/storage/outWarehouse/list',
    method: 'get',
    params: query
  })
}

// 查询出库单管理详细
export function getOutWarehouse(id) {
  return request({
    url: '/storage/outWarehouse/' + id,
    method: 'get'
  })
}

// 新增出库单管理
export function addOutWarehouse(data) {
  return request({
    url: '/storage/outWarehouse',
    method: 'post',
    data: data
  })
}

// 修改出库单管理
export function updateOutWarehouse(data) {
  return request({
    url: '/storage/outWarehouse',
    method: 'put',
    data: data
  })
}

// 删除出库单管理
export function delOutWarehouse(id) {
  return request({
    url: '/storage/outWarehouse/' + id,
    method: 'delete'
  })
}
